We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Di -> model

I have a file: public/index.php

$di->set('user', function() use ($di) { return Config::findFirst(1); });

throws an error

Call to undefined method Phalcon\Config::findFirst()



1.3k
Accepted
answer

Eh, helped to change the name of the class. Close.